from django.db import models


# Create your models here.

class Administrator(models.Model):
    SEX = (('男', '男'), ('女', '女'))
    DUTY = (
        ('老师', '老师'),
        ('校长', '校长'),
        ('副校长', '副校长'),
        ('书记', '书记'),
        ('副书记', '副书记'),
        ('教导主任', '教导主任'),
        ('副教导主任', '副教导主任')
    )
    admin_number = models.CharField(max_length=35, primary_key=True, unique=True)
    admin_password = models.CharField(max_length=45)
    admin_name = models.CharField(max_length=50, unique=True)
    admin_sex = models.CharField(max_length=20, choices=SEX, default="男")
    admin_duty = models.CharField(max_length=35, choices=DUTY)
    admin_phone = models.CharField(max_length=35)
    admin_birthday = models.DateField(max_length=40)

    class Mata:
        verbose_name = verbose_name_plural = "管理员"
